<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <title>通用网关服务</title>
    <meta charset="UTF-8">
   <link rel="stylesheet" type="text/css" th:href="@{/Css/bootstrap.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/Css/bootstrap-responsive.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/Css/style.css}" />
    <script type="text/javascript" th:src="@{/Js/jquery.js}"></script>
    <script type="text/javascript" th:src="@{/Js/jquery.sorted.js}"></script>
    <script type="text/javascript" th:src="@{/Js/bootstrap.js}"></script>
    <script type="text/javascript" th:src="@{/Js/ckform.js}"></script>
    <script type="text/javascript" th:src="@{/Js/common.js}"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<body>
<form th:action="@{/Node/save}" method="post">
    <input name="id" type="hidden" th:value="${gateway.id}"/>
	<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">网关名称</td>
        <td><input type="text" name="name" th:value="${gateway.name}"/></td>
    </tr>
    <tr>
        <td class="tableleft">拦截Path</td>
        <td><input type="text" name="path" th:value="${gateway.path}"/></td>
    </tr>
     <tr>
        <td class="tableleft">转发URL</td>
        <td><input type="text" name="url" th:value="${gateway.url}"/></td>
    </tr>    
    <tr>
        <td class="tableleft">服务编号</td>
        <td><input type="text" name="serviceId" th:value="${gateway.serviceId}"/></td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="submit" class="btn btn-primary">保存</button>&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>
</body>
</html>
<script>
$(function () {       
	$('#backid').click(function(){
			window.location.href="/Node/index";
	 });

});
</script>